package com.hfdg.prototype.base.entity;
import com.hfdg.prototype.base.annotations.Column;

import java.sql.JDBCType;
import java.util.Date;

/**
 * @ClassName BaseEntity
 * @Description TODO
 * @Author yuelh
 * @Date 2018/12/15 9:28
 * @Version 1.0
 * @Company 会飞的锅工作室
 **/
public class BaseEntity {
    //唯一ID
    @Column(title = "主键ID",type = JDBCType.BIGINT,length = 20,comment = "主键ID")
    Long id;
    @Column(title = "逻辑主键",type = JDBCType.VARCHAR,length = 64,comment = "逻辑主键，用于数据关联查询")
    String uid;
    //序号，用于排序
    @Column(title = "序号",type = JDBCType.INTEGER,length = 0,comment = "序号,用于查询时排序使用")
    Integer sortNo;
    //创建日期
    @Column(title = "创建时间",type = JDBCType.TIMESTAMP,length = 6,comment = "创建时间")
    Date createTime;
    //创建时间
    @Column(title = "更新时间",type = JDBCType.TIMESTAMP,length = 6,comment = "更新时间")
    Date updateTime;
   //删除标识，主要用于逻辑删除
    @Column(title="删除标识",type = JDBCType.CHAR,length = 4,comment ="删除标识" )
    String delFlag;
    //创建用户ID
    @Column(title="创建用户ID",type = JDBCType.VARCHAR,length = 64,comment ="创建用户ID" )
    String createBy;

    //更新用户ID
    @Column(title="更新用户ID",type = JDBCType.VARCHAR,length = 64,comment ="更新用户ID" )
    String updateBy;
    //删除标识，主要用于逻辑删除
    @Column(title="备注信息",type = JDBCType.VARCHAR,length = 255,comment ="备注信息" )
    String remarks;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public Integer getsortNo() {
        return sortNo;
    }

    public void setsortNo(Integer sortNo) {
        this.sortNo = sortNo;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }
}
